package org.bhf.json;

/**
 * Copyright (c) 2007, Blue Hole Software. All rights reserved.
 * Code licensed under the Apache 2.0 License:
 * http://www.apache.org/licenses/
 */

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * A type that is not supported by the JSON writer system.
 */
public class UnsupportedTypeException extends IOException
{
    private static final long serialVersionUID = 1L;

    /**
     *
     * @exclude
     */
    public UnsupportedTypeException( final Type type )
    {
        super( "JSONWriter does not support " + Util.getDeclarationName( type, false ) );
    }
}
